//
//  SearchStaticView.swift
//  Juejin App Demo
//
//  Created by 葛鹏 on 2021/8/15.
//

import SwiftUI

struct SearchStaticView: View {
    var body: some View {
        ZStack(alignment: .leading){
            Rectangle().foregroundColor(Color(red: 240/255, green: 241/255, blue: 245/255)).cornerRadius(5).frame(height: 40)
            HStack{
                Image(systemName: "magnifyingglass").padding(.leading)
                Text(Constants.searchPlaceHolder)
            }
        }
    }
}

struct SearchStaticView_Previews: PreviewProvider {
    static var previews: some View {
        SearchStaticView()
    }
}
